package com.lzy.crm.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lzy.crm.base.page.PageQuery;
import com.lzy.crm.base.service.BaseService;
import com.lzy.crm.dao.criteria.PpUserCriteria;
import com.lzy.crm.domain.PpUser;
import com.lzy.crm.vo.PpUserVo;

/**
 * 游戏用户信息
 * @author Administrator
 *
 */

public interface PpUserService  extends  BaseService<PpUser, PpUserCriteria>{
	
	
	/**
	 * 游戏用户登录
	 * @param uid
	 * @param type
	 * @param passwd
	 * @return
	 */
	public PpUser getPpUser(String uid );
	
	
	
	/**
	 * 游戏用户登录
	 * @param uid
	 * @param type
	 * @param passwd
	 * @return
	 */
	public PpUser getPpUserByUnionId(String unionId);
	
	
	/**
	 * 游戏用户登录
	 * @param uid
	 * @param type
	 * @param passwd
	 * @return
	 */
	public PpUser getPpUserByopenid(String openid);
	
	/**
	 * 通过邀请码查找
	 * @param uid
	 * @param type
	 * @param passwd
	 * @return
	 */
	public List<PpUser> getPpUserByCode(String code);
	
	
	/**
	 * 查询用户登录用户信息
	 * @param phone
	 * @return
	 */
	public List<PpUser> getPpUserByPhone(String phone);

	

	

	/**
	 * 我的推广员查询
	 * @param userId
	 * @param phone
	 * @param pageQuery
	 * @return
	 */
	public List<PpUserVo> getNextUserList(Integer uid,String code,String phone,String nxuid,String realname,String user_level,PageQuery pageQuery);

	/**
	 * 玩家查询
	 * @param userId
	 * @param phone
	 * @param pageQuery
	 * @return
	 */
	public List<PpUserVo> getUserList(String code,String phone,String uid,String realname,String user_level,PageQuery pageQuery);
	
	
	

	/**
	 *  发送房卡方法
	 * @param lessUser
	 * @param gameId
	 * @param totalCard
	 * @return
	 */
	public String newBuyCard(PpUser lessUser ,Integer gameId ,Integer totalCard);
	
}
